home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / programming / c / pmm / developer / include / libraries / gatexpr.h < prev    next >
C/C++ Source or Header  |  1999-06-14  |  2KB  |  52 lines

  1. /* gatexpr.h */
  2.  
  3. #ifndef GATEXPR
  4. #define GATEXPR
  5.  
  6. struct Library *GateXprBase;
  7.  
  8. enum    {    ERR_ILLEGAL=1,ERR_NOMEM,ERR_NOPORT,ERR_OPENDEVICE,
  9.         ERR_PARAMS,ERR_TIMER,ERR_OPENLIBRARY,ERR_SETUP,ERR_MODE };
  10.  
  11. enum    {    PAR_NONE,PAR_EVEN,PAR_ODD,PAR_MARK,PAR_SPACE };
  12.  
  13. struct TransferNote
  14. {
  15.     LONG             tn_Continue;
  16.     LONG             tn_CarrierDetect;
  17.     LONG             tn_Seconds;
  18.     LONG             tn_Bytes;
  19.     APTR             tn_UserData;
  20.     UBYTE            *tn_CurrentFile;
  21.     LONG             tn_FilesToGo;
  22.     UBYTE            *tn_ProtocolName;
  23.     LONG             tn_Extension;
  24.     LONG             tn_WatchCarrier;
  25.     LONG             tn_Aborted;
  26.     LONG             tn_Error;
  27.     LONG             tn_ErrorCode;
  28. };
  29.  
  30. LONG    TransferSetup(UBYTE *Device,LONG Unit,UBYTE *Library,LONG Baud,LONG DataBits,LONG StopBits,LONG Parity,LONG Handshaking);
  31.  
  32. LONG    ReceiveFile(UBYTE *Name,LONG Window,struct Screen *Screen);
  33. LONG    SendFile(UBYTE *Name,LONG Window,struct Screen *Screen);
  34.  
  35. LONG    GetOptions(UBYTE *Buffer);
  36. LONG    SetOptions(UBYTE *Buffer);
  37.  
  38. LONG    TransferSetupShared(struct IOExtSer *ReadRequest,struct IOExtSer *WriteRequest,UBYTE *Library);
  39. LONG    InstallTransferNote(struct TransferNote *Note);
  40. LONG    SendMultipleFile(UBYTE *Namen,LONG Window,struct Screen *Screen);
  41.  
  42. #pragma amicall(GateXprBase, 0x1e, TransferSetup(a0,d0,a1,d1,d2,d3,d4,d5))
  43. #pragma amicall(GateXprBase, 0x24, ReceiveFile(a0,d0,a1))
  44. #pragma amicall(GateXprBase, 0x2a, SendFile(a0,d0,a1))
  45. #pragma amicall(GateXprBase, 0x30, GetOptions(a0))
  46. #pragma amicall(GateXprBase, 0x36, SetOptions(a0))
  47. #pragma amicall(GateXprBase, 0x3c, TransferSetupShared(a0,a1,a2))
  48. #pragma amicall(GateXprBase, 0x42, InstallTransferNote(a0))
  49. #pragma amicall(GateXprBase, 0x48, SendMultipleFiles(a0,d0,a1))
  50.  
  51. #endif
  52.